<!DOCTYPE html>
<html>
<head>
	{include file="common_header" /}
	{include file="common_top" /}
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-body">
		  <div style="padding-bottom: 10px;">
          {if $ps['add']['power']}<button class="layui-btn layuiadmin-btn-useradmin" onclick="callurl('{:url('model/add')}')" data-type="add">添加</button>{/if}
        </div>
            <table class="layui-table" lay-even="" lay-skin="nob">

            <thead>
              <tr>
							<th>#序号</th>
							<th>排序</th>
							<th>模块名称</th>
							<th>模块缩写</th>
							<th>控制器/方法</th>
							<th class="text-center">显示</th>
							<!--<th>导航位置</th>-->
							{if $ps['del']['power'] or  $ps['edit']['power']}
							<th>管理</th>
							{/if}
						</tr>
            </thead>
            <tbody>
             {volist name="model" id="vo"}
						<tr id="tr_{$vo.mo_id}">
							<td>{$vo.mo_id}</td>
							<td>{$vo.mo_sort}</td>
							<td class="text-primary">{$vo.mo_title}</td>
							<td>{$vo.mo_shorttitle}</td>
							<td>{$vo.mo_controller}/{$vo.mo_action}</td>
							<td class="text-center">{if $vo.mo_show==1}<span class="layui-badge-dot layui-bg-green"></span>{else}<span class="layui-badge-dot"></span>{/if}</td>
							<!--<td>{if $vo.mo_navplace==1}顶部导航{/if}</td>-->
                            {if $ps['del']['power'] or  $ps['edit']['power']}
							<td>
							
							 <div class="layui-btn-group">
								{if $ps['del']['power']}<button class="layui-btn layui-btn-sm" onclick="calldel('{:url('model/del',array('id'=>$vo.mo_id))}','tr_{$vo.mo_id}')"><i class="layui-icon">&#xe640;</i></button>{/if}
								{if $ps['edit']['power']}<button class="layui-btn layui-btn-sm" onclick="callurl('{:url('model/edit',array('id'=>$vo.mo_id))}')"><i class="layui-icon">&#xe642;</i></button>{/if}
							  </div>
							</td>
                            {/if}
						</tr>
							{volist name="$vo.offline" id="vo1"}
							<tr id="tr_{$vo1.mo_id}">
								<td>{$vo1.mo_id}</td>
								<td>{$vo1.mo_sort}</td>
								<td class="text-primary">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$vo1.mo_title}</td>
								<td>{$vo1.mo_shorttitle}</td>
								<td>{$vo1.mo_controller}/{$vo1.mo_action}</td>
								<td class="text-center">{if $vo1.mo_show==1}<span class="layui-badge-dot layui-bg-green"></span>{else}<span class="layui-badge-dot"></span>{/if}</td>
								<!--<td>{if $vo.mo_navplace==1}顶部导航{/if}</td>-->
                                {if $ps['del']['power'] or  $ps['edit']['power']}
								<td>
								<div class="layui-btn-group">
								{if $ps['del']['power']}<button class="layui-btn layui-btn-sm" onclick="calldel('{:url('model/del',array('id'=>$vo1.mo_id))}','tr_{$vo1.mo_id}')"><i class="layui-icon">&#xe640;</i></button>{/if}
								{if $ps['edit']['power']}<button class="layui-btn layui-btn-sm" onclick="callurl('{:url('model/edit',array('id'=>$vo1.mo_id))}')"><i class="layui-icon">&#xe642;</i></button>{/if}
							  </div>
								</td>
                                {/if}
							</tr>
							{/volist}
						{/volist}
            </tbody>
          </table> 
          </div>
        </div>
      </div>
    </div>
  </div>
  {include file="common_footer" /} 
</body>
</html>